<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>HTML Editor</title>
    <link rel="stylesheet" href="codemirror/lib/codemirror.css">
    <link rel="stylesheet" href="codemirror/theme/darcula.css">
    <link rel="stylesheet" href="codemirror/addon/hint/show-hint.css">
    <link rel="stylesheet" href="codemirror/addon/dialog/dialog.css">
    <link rel="stylesheet" href="codemirror/addon/search/matchesonscrollbar.css">
    <script src="codemirror/lib/codemirror.js"></script>
    <script src="codemirror/mode/htmlmixed/htmlmixed.js"></script>
    <script src="codemirror/mode/xml/xml.js"></script>
    <script src="codemirror/mode/javascript/javascript.js"></script>
    <script src="codemirror/addon/edit/closetag.js"></script>
    <script src="codemirror/addon/edit/closebrackets.js"></script>
    <script src="codemirror/addon/selection/active-line.js"></script>
    <script src="codemirror/addon/hint/show-hint.js"></script>
    <script src="codemirror/addon/hint/xml-hint.js"></script>
    <script src="codemirror/addon/hint/html-hint.js"></script>
    <script src="codemirror/addon/hint/css-hint.js"></script>
    <script src="codemirror/addon/hint/javascript-hint.js"></script>
    <script src="codemirror/addon/display/placeholder.js"></script>
    <script src="codemirror/addon/dialog/dialog.js"></script>
    <script src="codemirror/addon/search/searchcursor.js"></script>
    <script src="codemirror/addon/search/search.js"></script>
    <script src="codemirror/addon/scroll/annotatescrollbar.js"></script>
    <script src="codemirror/addon/search/matchesonscrollbar.js"></script>
    <script src="codemirror/addon/search/jump-to-line.js"></script>
    <script src="custom/js/lodash.min.js"></script>
    <link rel="stylesheet" href="custom/css/html.css">
</head>

<body>
    <div class="container">
        <header>
            <h1>在线 HTML 编辑器</h1>
            <ul class="nav">
                <li class="nav-item">
                    <button>示例文件</button>
                    <ul class="dropdown-menu" role="menu" id="examplesMenu"></ul>
                </li>
                <li class="nav-item" id="newFile">
                    <button>新建文件</button>
                </li>
                <li class="nav-item" id="openFile">
                    <button>打开文件</button>
                </li>
                <li class="nav-item" id="saveFile">
                    <button>保存文件</button>
                </li>
                <li class="nav-item">
                    <button>人工智能</button>
                    <ul class="dropdown-menu" role="menu" id="aiMenu">
                        <li class="menu-item" data-url="https://ai.dangbei.com/chat">当贝AI</li>
                        <li class="menu-item" data-url="https://www.wenxiaobai.com/">问小白</li>
                        <li class="menu-item" data-url="https://chat.baidu.com/">百度AI</li>
                        <li class="menu-item" data-url="https://xiaoyi.huawei.com/chat/">小艺</li>
                        <li class="menu-item" data-url="https://www.scnet.cn/ui/chatbot/">超算互联网</li>
                    </ul>
                </li>
                <li class="nav-item">
                    <button>参考手册</button>
                    <ul class="dropdown-menu" role="menu" id="manualMenu">
                        <li class="menu-item" data-url="https://developer.mozilla.org/zh-CN/">MDN Web Docs</li>
                        <li class="menu-item" data-url="https://www.runoob.com/">菜鸟教程</li>
                        <li class="menu-item" data-url="https://www.w3cschool.cn/html5/">W3Cschool</li>
                    </ul>
                </li>
            </ul>
        </header>
        <main>
            <textarea id="code" name="code" placeholder="Code goes here..."></textarea>
            <iframe id="preview" sandbox="allow-scripts"></iframe>
        </main>

    </div>

    <script src="custom/js/html.js"></script>
</body>

</html>